"use strict";
exports.__esModule = true;
var webvitals_1 = require("./lib/webvitals");
var userVitals_1 = require("./lib/userVitals");
var errorVitals_1 = require("./lib/errorVitals");
var timing = 
// W3C Level2  PerformanceNavigationTiming
// 使用了High-Resolution Time，时间精度可以达毫秒的小数点好几位。
performance.getEntriesByType('navigation').length > 0
    ? performance.getEntriesByType('navigation')[0]
    : performance.timing; // W3C Level1  (目前兼容性高，仍然可使用，未来可能被废弃)。
var webvital = new webvitals_1["default"](timing);
var userVitals = new userVitals_1["default"](timing);
var errorVitals = new errorVitals_1["default"](timing, { Vue: '' });
console.log(webvital.metrics.state);
console.log(userVitals.metrics.state);
